#ifndef SINGLE
//  An adapted ObjectSpace example for use with SGI STL

#include <algo.h>
#include <iostream.h>

#ifdef MAIN
#define find1_test main
#endif
#endif
int find1_test(int, char**)
{
  cout<<"Results of find1_test:"<<endl;
#ifndef ACORN_CFRONT
int years[] = { 1942, 1952, 1962, 1972, 1982, 1992 };
#else
static int years[] = { 1942, 1952, 1962, 1972, 1982, 1992 };
#endif

  const unsigned yearCount = sizeof(years) / sizeof(years[0]);
  int* location = find(years, years + yearCount, 1972);
  cout << "Found 1972 at offset " <<(location - years) << endl;
  return 0;
}
